home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48hor1
/
frad2.doc
< prev
next >
Wrap
Text File
|
1995-03-31
|
1KB
|
36 lines
(User.programs)
Item: 119 by _Guest_ at hpcvbbs.UUCP
Author: [Michael lowry]
Subj: Would you write the prg.?
Keyw: decimal -> fraction*radical of fraction.
Date: Thu Oct 04 1990 01:20
----------
Resp: 1 of 3 by _morton at hpcvbbs.UUCP
Author: [Mr. Morton]
Date: Mon Oct 08 1990 15:19
[Note: Also see QRAD, someone else's approach to this. -jkh-]
Michael:
Here is a program called "FRAD2" which, given a decimal fraction,
will return the value "A/B*SQRT(C/D)" based on the algorithm
provided by Joe Horn. This program uses two other routines, "TJ"
and "TK" which will be provided in the next two messages. (I
haven't figured out how to send more than one file to a message.)
The program also uses the prime number program "PF" written
by Joe Horn. I have renamed his program "PRIME" as you will see
in "FRAD2". I apologize for the bad programming style but
this is the first program I have written for the 48SX and it took
nearly five hours to get it running. I look forward to other
programs submitted by more experiences programmers along with
their critisisms of mine.
-- Larry Morton
(805) 733-4275 daytime
Santa Barbara, California
Referring to "FRAD2", there are a few cases where the program
hickups such as "47/21", "87/89*SQRT(87/89)", "3*SQRT(1/3)",
etc.
[Note: PRIME can be replaced by PF DTAG. -jkh]